package tools.parents;

import java.io.BufferedReader;

public class Parser {
	protected boolean hasMore;
		protected BufferedReader reader;
		protected Alignment curr, next;
		
		public Parser(BufferedReader reader){
			this.reader=reader;
		}
		
		public boolean hasMore(){
			return hasMore;
		}
		
		public Alignment nextAlignment()throws Exception{
			if(!hasMore()){
				throw new Exception("No more alignments");
			}
			curr=next;
			readNext();
			return curr;
		}
		
		private void readNext(){
			//Read the next object
		}
}
